<cp-navbar [border]="false" (onClickLeft)="onClickLeft()"></cp-navbar>
<div class="error" *ngIf="error">
    <cp-error (reload)="handleReload()"></cp-error>
</div>
<div class="loading" *ngIf="loading">
    <cp-loading></cp-loading>
</div>
<cp-tab [items]="tabs" [itemWidth]="40" (onTabChange)="onTabChange($event)"></cp-tab>
<section class="ct-top">
    <div class="icon"><img src="assets/images/Comment/icon_question.png" alt=""></div>
    <div class="question">{{topQuestion}}</div>
</section>
<div class="container" *ngIf="!loading&&!error">

    <div style="padding-top:0.4rem;">

        <!-- 楼盘 -->
        <section class="content one" *ngIf="isOne">

            <div class="typelist">
                <div (click)="getTagDetail('',0)" [ngClass]="{'active':isActiveIndex===0}" >全部</div>
                <div [ngClass]="{'active':isActiveIndex===i+1}" (click)="getTagDetail(item.Name,i+1)" *ngFor="let item of tags;let i=index">{{item.Name}}({{item.Count}})</div>
            </div>

            <div class="comment">
                <div class="listComment" *ngFor="let item of comments" (click)="goDetail(item.Id)">
                <!-- <div class="listComment" *ngFor="let item of comments"> -->
                    <cp-estate-comment-more [item]="item" (praise)="praise($event)"></cp-estate-comment-more>
                </div>
            </div>
        </section>

        <!-- 户型 -->
        <section class="content two" *ngIf="!isOne">
            <div class="comment" *ngFor="let item of commentsTow" (click)="goDetail(item.Id,1)">
                <cp-estate-comment-type [item]="item" (praise)="praise($event)"></cp-estate-comment-type>
            </div>
        </section>

    </div>

    <!-- <div class="fixed-top">
        <div class="tags">
            <span (click)="searchLabel('SaleStatus_Sell')">在售</span> 
            <span (click)="searchLabel('SaleStatus_Wait')">待售</span>
            <span (click)="searchLabel('SaleStatus_Finish')">售罄</span>
        </div>
    </div>
    <div class="fill"></div>
    <div class="gutter"></div> -->
    <!-- <div class="list" *ngIf="itemsViewModal.length!=0">
        <div class="item" [queryParams]="{layout: item.Id}" routerLink="/workspace/estate/typeDetail" *ngFor="let item of itemsViewModal">
            <cp-estate-type2 [item]="item"></cp-estate-type2>
        </div>
    </div> -->

    <!-- <div class="null" *ngIf="itemsViewModal.length===0">
        <cp-empty></cp-empty>
    </div> -->

</div>

